import request from '@/utils/request'

// 保存预约考试信息
export function saveExamInfo(data: object) {
  return request({
    url: '/system/exam/saveExamInfo',
    method: 'post',
    data: data
  })
}

// 获取学生预约考试信息
export function getExamInfo() {
  return request({
    url: '/system/exam/getExamInfo',
    method: 'get'
  })
}

// 保存申请免试信息
export function saveExemptInfo(data: object) {
  return request({
    url: '/student/bookExam/exempt',
    method: 'post',
    data: data
  })
}

export function clear() {
  return request({
    url: '/system/exam/clear',
    method: 'delete'
  })
}
